<%-- 
    Document   : index
    Created on : May 7, 2014, 8:32:53 PM
    Author     : ACER
--%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>
            <s:text name="home.title"/>
        </title>
        <style type="text/css">
            a{font-size: 20px;
              text-decoration: none;
              background: #999999;
              color:#FFF;
              padding: 5px;
              border: solid 1px #ccc;
              border-radius: 3px;
              margin:10px;
            }
            a:hover{font-size: 20px;
              text-decoration: none;
              background: #ff6633;
              color:#000;
              padding: 5px;
              border: solid 1px #ff6633;
              border-radius: 3px;
              margin:10px;
            }
            .header{
                background: #003333;
                color:#FFF;
                padding:5px;
                font-size: 25px;
            }
            td{
                height: auto;
                min-height: 25px;
                padding:10px;
            }
            table{
                width:90%; margin-left: auto; margin-right: auto;
            }
        </style>
    </head>
    <body>
        <s:form action="home">
            <table border="1">
                <thead>
                    <tr>
                        <th class="header"><s:text name="home.head.table.options.users"/></th>
                        <th class="header"><s:text name="home.head.table.options.category"/></th>
                        <th class="header"><s:text name="home.head.table.options.product"/></th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>
                            <s:url id="userList" action="user/list"/>
                            <s:a href="%{#userList}">
                                <s:text name="home.links.user.list"/>
                            </s:a>
                        </td>
                        <td>
                            <s:url id="categoryList" action="category/list"/>
                            <s:a href="%{#categoryList}">
                                <s:text name="home.links.category.list"/>
                            </s:a>
                        </td>
                        <td>
                            <s:url id="productList" action="product/list"/>
                            <s:a href="%{#productList}">
                                <s:text name="home.links.product.list"/>
                            </s:a>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <s:url id="register" action="user/register"/>
                            <s:a href="%{#register}">
                                <s:text name="home.links.user.register"/>
                            </s:a>
                        </td>
                        <td>
                            <s:url id="createNewCategory" action="category/create"/>
                            <s:a href="%{#createNewCategory}">
                                <s:text name="global.actions.create"/>
                            </s:a>
                        </td>
                        <td>
                            <s:url id="createNewProduct" action="product/create"/>
                            <s:a href="%{#createNewProduct}">
                                <s:text name="global.actions.create"/>
                            </s:a>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <s:url id="login" action="user/login"/>
                            <s:a href="%{#login}">
                                <s:text name="home.links.user.login"/>
                            </s:a>
                        </td>
                        <td>
                            <s:url id="searchCategory" action="category/search"/>
                            <s:a href="%{#searchCategory}">
                                <s:text name="global.actions.search"/>
                            </s:a>
                        </td>
                        <td>
                            <s:url id="searchProduct" action="product/search"/>
                            <s:a href="%{#searchProduct}">
                                <s:text name="global.actions.search"/>
                            </s:a>
                        </td>
                    </tr>
                </tbody>
            </table>    
        </s:form>

    </body>
</html>
